package com.yulongtian.weekCompetition.month202211.week3;

/**
 * 力扣
 * 第 320 场周赛
 *
 * @author yulongTian
 * @create 2022-11-20 10:26
 */
public class Test01 {
    public static void main(String[] args) {

    }

    public int unequalTriplets(int[] nums) {
        int res = 0;

        for (int i = 0; i < nums.length; i++) {
            for (int j = i + 1; j < nums.length; j++) {
                for (int k = j + 1; k < nums.length; k++) {
                    if (nums[i] != nums[j] && nums[i] != nums[k] && nums[j] != nums[k]) {
                        res++;
                    }
                }
            }
        }

        return res;
    }

}
